package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "project_safety", schema = "xmgl", catalog = "huaneng-manage")
public class ProjectSafety  extends BaseModel implements Serializable {


    @ApiModelProperty(value = "编号")
    private String safetyId;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "单位地址")
    private String unitAddress;

    @ApiModelProperty(value = "联系方式")
    private String contact;

    @ApiModelProperty(value = "检查日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date checkDate;

    @ApiModelProperty(value = "罚款日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date penaltyDate;

    @ApiModelProperty(value = "奖励日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date rewardDate;

    @ApiModelProperty(value = "检查人员")
    private String checkPerson;

    @ApiModelProperty(value = "检查结果")
    private String checkResult;

    @ApiModelProperty(value = "奖励方式")
    private String rewardMethod;

    @ApiModelProperty(value = "罚款原因")
    private String penaltyReason;

    @ApiModelProperty(value = "奖励原因")
    private String rewardReason;

    @ApiModelProperty(value = "罚款金额")
    private BigDecimal penaltyAmount;



}
